package com.example.springbootsfzy.service.sunnan;

import com.example.springbootsfzy.domain.ConsultantLevels;
import com.example.springbootsfzy.domain.Consultants;
import com.example.springbootsfzy.mapper.ConsultantsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FilterService {
    @Autowired
    private ConsultantsMapper consultantsMapper;

    /**
     * 返回擅长(extra字段)
     */
    public List<String> getExtra() {
        return consultantsMapper.getExtra();
    }

    /**
     * 返回等级
     */
    public List<ConsultantLevels> getLevel() {
        return consultantsMapper.getLevel();
    }

    /**
     * 根据筛选条件获取咨询师列表
     * @return 咨询师列表
     */
    // 根据筛选条件查询咨询师
    public List<Consultants> findConsultantsByFilters(String gender, String area, List<String> fields, String level) {
        return consultantsMapper.findConsultantsByFilters(gender, area, fields, level);
    }



}
